<?php


namespace App\Model;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;

class AmazonGood extends Model
{
    public $timestamps = false;
    protected $fillable = [
        'asin',
        'sku',
        'fnsku'
    ];

    /**
     * 关联商品
     *
     * @return HasOne
     */
    public function good()
    {
        return $this->hasOne(Good::class, 'amazon_goods_id');
    }
}
